#ifndef _MONSTER_H_
#define _MONSTER_H_
#include "MyString.h"
#include <DynamicArray.h>
#include "Scene.h"

struct Monster
{
    int hp;
    int attack;
    int def;
    int x;
    int y;
    int exp;
    int golden;
    MyStr symbol;
    MyStr name;
};

typedef struct Monster monster;

monster* CreateMonster(const char *name,int hp, int attack,int def,char* symbol,int exp,int golden);
monster* CreateMonsterLoad(int x,int y,const char *name,int hp, int attack,int def,char* symbol,int exp,int golden);

void FreeMonster(void* ptr);
void SetMonsters(DArray *ms);
void SetMonsterPosition(DArray *ms,char* (* map)[MAPSIZE]);
monster * GetMonsterByPosition(DArray *ms,int x,int y);
MyStr MonstersToString(DArray *ms);

#endif